package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetMealDao {
    void addSetMeal(Setmeal setmeal);
    void addSetMealAndCheckGroup(Map<String ,Integer> setMealAndCheckGroupMap);

    Page<Setmeal> findPage(String queryString);

    Setmeal findSetmealById(Integer id);

    List<Integer> findCheckgroupBySetmealId(Integer id);

    void setSetmeal(Setmeal setmeal);

    void deleteSetmealAndGroup(Integer id);

    void deleteSetmeal(Integer id);

    List<Setmeal> findAll();

    Setmeal findById(Integer id );
}
